import request from '../utils/request'

export const listPages = (pages,size) => {
	return request({
		url: "/datum/page",
		method: 'get',
		params: {
			pages,
			size
		}
	})
}

//根据类别查询资料
export function findByType (pages,size,id) {
	return request({
		url: "/datum/findByType",
		method: 'get',
		params: { pages,size,id }
	})
}

//根据id查询资料
export function findById (id) {
	return request({
		url: "/datum/findById",
		method: 'get',
		params: { id }
	})
}